<?php
/**
 * 系统api
 */
namespace app\controller\applets;
use app\controller\applets\BaseController;
use think\Request;
use app\service\SystemService;


class System extends BaseController{

	private $SystemService;

    public function __construct() {
		$this->SystemService=new SystemService();

    }

    /**
     * 获取小程序信息
     * @param  Request $appId [appId]
     * @return [array]         [数组]
     */
	public function getminiprograminfo(Request $input){
		return $this->SystemService->getminiprograminfo((object)$input->param());
	}

    /**
     * 下载小程序源码
     * @param  Request $appId [appId]
     * @return [array]         [数组]
     */
	public function downsource(Request $input){
		return $this->SystemService->downsource((object)$input->param());
	}

    /**
     * 上传提交小程序源码
     * @param  Request $appId [appId]
     * @return [array]         [数组]
     */
    public function commitsource(Request $input){
        return $this->SystemService->commitsource($input);
    }







}
